<pre class="docs-method-signature"><code>graph.getSinks()</code></pre><p>Return an array of all the leafs of the graph.
                  Time complexity: <code>O(|V|)</code>.
                </p>